/*
 * Copyright 2019 The FATE Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.webank.ai.fate.eggroll.meta.service.dao.generated.model;

import java.io.Serializable;
import java.util.Date;

public class Fragment implements Serializable {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table fragment
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column fragment.fragment_id
     *
     * @mbg.generated
     */
    private Long fragmentId;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column fragment.table_id
     *
     * @mbg.generated
     */
    private Long tableId;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column fragment.node_id
     *
     * @mbg.generated
     */
    private Long nodeId;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column fragment.fragment_order
     *
     * @mbg.generated
     */
    private Integer fragmentOrder;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column fragment.status
     *
     * @mbg.generated
     */
    private String status;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column fragment.created_at
     *
     * @mbg.generated
     */
    private Date createdAt;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column fragment.updated_at
     *
     * @mbg.generated
     */
    private Date updatedAt;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column fragment.fragment_id
     *
     * @return the value of fragment.fragment_id
     * @mbg.generated
     */
    public Long getFragmentId() {
        return fragmentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column fragment.fragment_id
     *
     * @param fragmentId the value for fragment.fragment_id
     * @mbg.generated
     */
    public void setFragmentId(Long fragmentId) {
        this.fragmentId = fragmentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column fragment.table_id
     *
     * @return the value of fragment.table_id
     * @mbg.generated
     */
    public Long getTableId() {
        return tableId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column fragment.table_id
     *
     * @param tableId the value for fragment.table_id
     * @mbg.generated
     */
    public void setTableId(Long tableId) {
        this.tableId = tableId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column fragment.node_id
     *
     * @return the value of fragment.node_id
     * @mbg.generated
     */
    public Long getNodeId() {
        return nodeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column fragment.node_id
     *
     * @param nodeId the value for fragment.node_id
     * @mbg.generated
     */
    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column fragment.fragment_order
     *
     * @return the value of fragment.fragment_order
     * @mbg.generated
     */
    public Integer getFragmentOrder() {
        return fragmentOrder;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column fragment.fragment_order
     *
     * @param fragmentOrder the value for fragment.fragment_order
     * @mbg.generated
     */
    public void setFragmentOrder(Integer fragmentOrder) {
        this.fragmentOrder = fragmentOrder;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column fragment.status
     *
     * @return the value of fragment.status
     * @mbg.generated
     */
    public String getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column fragment.status
     *
     * @param status the value for fragment.status
     * @mbg.generated
     */
    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column fragment.created_at
     *
     * @return the value of fragment.created_at
     * @mbg.generated
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column fragment.created_at
     *
     * @param createdAt the value for fragment.created_at
     * @mbg.generated
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column fragment.updated_at
     *
     * @return the value of fragment.updated_at
     * @mbg.generated
     */
    public Date getUpdatedAt() {
        return updatedAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column fragment.updated_at
     *
     * @param updatedAt the value for fragment.updated_at
     * @mbg.generated
     */
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fragment
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fragmentId=").append(fragmentId);
        sb.append(", tableId=").append(tableId);
        sb.append(", nodeId=").append(nodeId);
        sb.append(", fragmentOrder=").append(fragmentOrder);
        sb.append(", status=").append(status);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fragment
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Fragment other = (Fragment) that;
        return (this.getFragmentId() == null ? other.getFragmentId() == null : this.getFragmentId().equals(other.getFragmentId()))
                && (this.getTableId() == null ? other.getTableId() == null : this.getTableId().equals(other.getTableId()))
                && (this.getNodeId() == null ? other.getNodeId() == null : this.getNodeId().equals(other.getNodeId()))
                && (this.getFragmentOrder() == null ? other.getFragmentOrder() == null : this.getFragmentOrder().equals(other.getFragmentOrder()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
                && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fragment
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFragmentId() == null) ? 0 : getFragmentId().hashCode());
        result = prime * result + ((getTableId() == null) ? 0 : getTableId().hashCode());
        result = prime * result + ((getNodeId() == null) ? 0 : getNodeId().hashCode());
        result = prime * result + ((getFragmentOrder() == null) ? 0 : getFragmentOrder().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        return result;
    }
}